﻿#pragma once

#include <QCalendarWidget>
#include <set>
/// <summary>
/// 自定义日历控件
/// </summary>
class YCalendar : public QCalendarWidget
{
	Q_OBJECT

public:
    YCalendar(QWidget* p);
    //~YCalendar();
public:
    void paintCell(QPainter* painter,
        const QRect& rec,
        const QDate& date) const override;
    void AddDate(QDate d) { mdate_.insert(d); }
    void ClearDate() { mdate_.clear(); }
private:
    std::set<QDate> mdate_;//存放有视频的日期
};
